import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
// 引入ViewUI
import ViewUI from 'view-design'
import 'view-design/dist/styles/iview.css'
// 只引入native模式
import vuescroll from 'vuescroll/dist/vuescroll-native'

Vue.config.productionTip = false

// 引入ViewUI
Vue.use(ViewUI)

Vue.use(vuescroll)
Vue.prototype.$vuescrollConfig = {
  rail: {
    size: '8px'
  },
  bar: {
    background: 'rgba(0,0,0,0.1)',
    size: '8px'
  }
}

// 获取远程调用
const remote = require('electron').remote
Vue.prototype.$remote = remote

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
